//
//  HEInputViewPluginNotif.m
//  HealthElderly
//
//  Created by 吴欧 on 2021/11/22.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import "HEInputViewPluginNotif.h"
#import "HEIMNotificationViewController.h"

@interface HEInputViewPluginNotif ()

@property (nonatomic, copy) LCCKIdResultBlock sendCustomMessageHandler;

@end

@implementation HEInputViewPluginNotif
@synthesize inputViewRef = _inputViewRef;
@synthesize sendCustomMessageHandler = _sendCustomMessageHandler;

#pragma mark -
#pragma mark - LCCKInputViewPluginSubclassing Method

+ (LCCKInputViewPluginType)classPluginType {
    return LCCKInputViewPluginTypeGroupNotif;
}

#pragma mark -
#pragma mark - LCCKInputViewPluginDelegate Method

/*!
 * 插件图标
 */
- (UIImage *)pluginIconImage {
    return IMAGE_NAMED(@"exam_form");
}

/*!
 * 插件名称
 */
- (NSString *)pluginTitle {
    return @"通知公告";
}

/*!
 * 插件对应的 view，会被加载到 inputView 上
 */
- (UIView *)pluginContentView {
    return nil;
}

- (void)pluginDidClicked {
    [super pluginDidClicked];

    [self selectConsulReportHandler];
}

- (void)selectConsulReportHandler {
    HEIMNotificationViewController *vc = [HEIMNotificationViewController new];
    vc.session = self.inputViewRef.session;
    [self.conversationViewController.navigationController pushViewController:vc animated:YES];
}

#pragma mark -
#pragma mark - Private Methods

@end
